﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VersionAttribute
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    class VersionAttribute : Attribute
    {
        private string name = null;
        private string comment = null;

        public string Name
        {
            get { return this.name; }
        }
        public string Comment
        {
            get { return this.comment; }
        }

        public VersionAttribute(string name, string comment)
        {
            this.name = name;
            this.comment = comment;
        }

        public override string ToString()
        {
            return String.Format("{0} ({1})", this.name, this.comment);
        }
    }
}
